
// const addressstr = 'http://localhost:8081/userpermission/'
const USER_NAME = 'username'
window.addressstr = 'http://localhost:8081/userpermission/'
export default {
  read () {
    return JSON.parse(localStorage.getItem(USER_NAME) || '[]')
  },
  save (username) {
    localStorage.setItem(USER_NAME, JSON.stringify(username))
  }
}

/*
install () {
  Vue.prototype.$addressstr = addressstr;
}
*/
